for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
// DateTimeParseException.js
"use strict";
// :: DEPENDENCIES
// load native dependencies
const path = require("path");
// load local dependencies
const DateTimeException = require(path.join(__dirname, "DateTimeException.js"));
// :: BASIC SETUP
/**
* An exception thrown when an error occurs during parsing.
* @param {String} message - The message describing the <tt>DateTimeParseException</tt>.
* @param {Number} code - The unique code that identifies the cause of the <tt>DateTimeParseException</tt>.
* @augments DateTimeException
* @constructor
* @see https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeParseException.html
*/
const DateTimeParseException = function (message, code) {
DateTimeException.call(this, message, code);
};
// :: INHERITANCE
// set the DateTimeException 'class' as the parent in the prototype chain
DateTimeParseException.prototype = Object.create(DateTimeException.prototype);
DateTimeParseException.prototype.constructor = DateTimeException;
// :: PROTOTYPE
* The name used to identify a <tt>DateTimeParseException</tt>.
* @type {String}
* @default
DateTimeParseException.prototype.name = "DateTimeParseException";
// :: EXPORT
// export the DateTimeParseException 'class'
module.exports = DateTimeParseException;